package com.google.android.gms.internal;

import java.io.IOException;

public final class zzjs extends zzflm<zzjs> {
    private Integer zzbfp = null;
    private Integer zzbfq = null;

    public zzjs() {
        this.zzpvl = null;
        this.zzpnr = -1;
    }

    public final /* synthetic */ zzfls zza(zzflj zzflj) throws IOException {
        while (true) {
            int zzcxx = zzflj.zzcxx();
            if (zzcxx == 0) {
                return this;
            }
            if (zzcxx == 8) {
                this.zzbfp = Integer.valueOf(zzflj.zzcym());
            } else if (zzcxx == 16) {
                this.zzbfq = Integer.valueOf(zzflj.zzcym());
            } else if (!super.zza(zzflj, zzcxx)) {
                return this;
            }
        }
    }

    public final void zza(zzflk zzflk) throws IOException {
        if (this.zzbfp != null) {
            zzflk.zzad(1, this.zzbfp.intValue());
        }
        if (this.zzbfq != null) {
            zzflk.zzad(2, this.zzbfq.intValue());
        }
        super.zza(zzflk);
    }

    /* access modifiers changed from: protected */
    public final int zzq() {
        int zzq = super.zzq();
        if (this.zzbfp != null) {
            zzq += zzflk.zzag(1, this.zzbfp.intValue());
        }
        return this.zzbfq != null ? zzq + zzflk.zzag(2, this.zzbfq.intValue()) : zzq;
    }
}
